package com.example.designpatterns.structural.flyweight;

/**
 * 具体享元
 *
 * @author scott
 */
public class ConcreteChessPiece implements ChessPiece {

    private String type;

    public ConcreteChessPiece(String type) {
        this.type = type;
    }

    @Override
    public void display(int x, int y) {
        System.out.println("Displaying " + type + " chess piece at (" + x + ", " + y + ")");
    }

}
